package com.objectoriented.tang.mapper;


import com.objectoriented.tang.DBpojo.History;
import com.objectoriented.tang.DBpojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface UserMapper {
    public List<User> getAllUser();
    public User getUser(HashMap<String,Object> map);
    public void register(HashMap<String,Object> map);
    public User login(HashMap<String,Object> map);
    public List<History> getHistory(HashMap<String,Object> map);
    public int addHistory(HashMap<String,Object> map);
    public int update(HashMap<String,Object> map);
}
